#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<cstdio>

using namespace std;

int main()
{
	double A, B, C;
	cin >> A >> B >> C;
	printf("MEDIA = %.1lf", (A * 2 + B * 3 + C * 5) / 10);
	return 0;
}